package cn.tedu.spring.example;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

@SuppressWarnings("all")
/**
 * 创建User类,并且交给Spring管理
 * @Component 表示这个类交给Spring管理
 */
//@Component
//@Repository
//@Service
@Controller
public class User {
    public void userRun() {
        System.out.println("如果你为门中弟子伤她一分,我便屠你满门");
    }
}
